#include "ScreenManager.h"
#include "CreateConsoleWindow.h"
#include <GMFactoryAddMessages.h>

#include <SDL_net.h>
#include <SDL.h>


#undef main


int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
	SDL_Init(0);
	SDLNet_Init();

#ifdef _DEBUG
	CreateConsole();
#endif
	
	TheScreenManager::Instance()->SetWindowSize(1024, 720);
	TheScreenManager::Instance()->CreateDX11Window(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
	
	//SDL_Quit();
	return 0;
}